<script setup>
import { createMessage } from '@/components/Message/methods'
import Button from '@/components/Button/Button.vue'

const open = () => {
 createMessage({ message: 'hello world', isClose: true, duration: 0 })
}

</script>
<template>
<div class="basic block">
  <Button @click="open"> 可关闭消息 </Button>

</div>
</template>